import request from '@/utils/request'

//获取所有城市
export function getCity(){

	
	return request({
		url: '/vehicle-web-server/api.v1/districts/list',
		method: 'get',
	});
}

export function getCompanyByDistrictCode(districtCode){

	return request({
		url: '/vehicle-web-server/api.v1/regionInfo/list/'+districtCode,
		method: 'get',
	});
}


//企业数和企业分布
export function getComDataTotalAndPer() {
	return request({
		url: '/vehicle-web-server/api.v1/dashboard/left/top',
		method: 'get',
	});
}

//各区企业联网数和联网率
export function getAreaInlineData() {
	return request({
		url: '/vehicle-web-server/api.v1/dashboard/left/middle',
		method: 'get',
	});
}

//近一周上报统计
export function getWeekData() {
	return request({
		url: '/vehicle-web-server/api.v1/dashboard/left/bottom',
		method: 'get',
	});
}

//上报数和前多少名
export function getReportDataAndTop() {
	return request({
		url: '/vehicle-web-server/api.v1/dashboard/right/top',
		method: 'get',
	});
}

//获取排放阶段统计数据
export function getStageData() {
	return request({
		url: '/vehicle-web-server/api.v1/dashboard/right/middle',
		method: 'get',
	});
}

//车辆预警数据
export function getWarningCarData() {
	return request({
		url: '/vehicle-web-server/api.v1/dashboard/right/bottom/vehicleAlarm',
		method: 'get',
	});
}

//企业预警数据
export function getWarningComData() {
	return request({
		url: '/vehicle-web-server/api.v1/dashboard/right/bottom/companyAlarm',
		method: 'get',
	});
}

//地图上企业列表
export function getMapComData() {
	return request({
		url: '/vehicle-web-server/api.v1/dashboard/left/center',
		method: 'get',
	});
}